import request from '@/utils/request.js'
import { useTokenStore } from '@/stores/token.js';


// 查询所有作者
export const authorListService = (params) => {
    return request.get('/manager/author/list',{params:params})
}

// 改为管理
export const authorStatusService = (userId)=> {
    return request.put('/manager/author/'+ userId)
}

// 降职为用户
export const authorCancelService = (userId)=> {
    return request.put('/manager/author/cancel/'+ userId)
}

// 删除用户
export const authorDeleteService = (userId)=> {
    return request.delete('/manager/author/'+ userId)
}